objects = $(patsubst %.c,%.o,$(wildcard *.c))
CC = gcc
CFLAGS = -g
TARGET = client_main
$(TARGET):$(objects)
	$(CC) $(CFLAGS) -o $@ $^ 
$(objects):client.h
#声明为伪目标，防止出现史料未及的错误，比如硬盘中存在一个名为clean的文件。
.PHONY:clean
clean:
	rm -rf *.o 
